package com.foreknow.service;

import com.foreknow.bean.Guestbook;

import java.util.List;

public interface GuestbookService {
    /**
     * 添加
     * @param guestbook
     * @return
     */
    public int add (Guestbook guestbook);

    /**
     * 修改
     * @param guestbook
     * @return
     */
    public int update(Guestbook guestbook);

    /**
     * 删除
     * @param id
     * @return
     */
    public int delete (Integer id);


    /**
     * 查询
     * @param id
     * @return
     */
    public Guestbook query (Integer id);

    /**
     * 模糊查询
     */
    public List<Object> mohuquery (String name );

    /**
     * 查询所有
     */
    public List<Object> allquery();
}
